﻿using System.Windows.Forms;

namespace TestContentTool.TestControls
{
    public partial class TextEditDialog : Form
    {
        public string Value { get; set; }
        public TextEditDialog()
        {
            InitializeComponent();
        }

        private void TextEditDialog_Load(object sender, System.EventArgs e)
        {
            textBox1.Text = Value;
        }

        private void button1_Click(object sender, System.EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Value = textBox1.Text;
        }

        private void button2_Click(object sender, System.EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
